<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>提示信息</title>
    <style>
        *{ padding: 0; margin: 0; }
        body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 6px; }
        .info-box{
            width:500px;
            height:150px;
            border:1px solid #cc0000;
            position: absolute;
            top:50%;
            left:50%;
            margin-left: -250px;
            margin-top: -75px;
        }
        .title{
            font-size: 15px;
            height:40px;
            background:#cc0000;
            color:#fff;
            text-indent: 20px;
            line-height: 40px;
        }
        .main-left{
            width:110px;
            float: left;
        }
        .main-left img{
            width:90px;
            height:90px;
            margin: 10px;
        }
        .main-right{
            width:390px;
            float: left;
            font-size:14px;
        }
        .info{
            margin-top: 20px;
            margin-right: 20px;
        }
        .btn a{
            color:#666;
            text-decoration: none;
        }
        .btn{
            text-align: right;
            position: absolute;
            bottom:20px;
            right:20px;
        }
    </style>
    <if condition="$message">
        <style>
            .info-box{
                border-color:#5cb85c;
            }
            .title{
                background:#5cb85c;
            }
        </style>
        <else/>
    </if>
</head>
<body>
<div class="info-box">
    <div class="title" style="background-color: blue"><if condition="$message">操作成功<else/>操作失败</if></div>
    <div class="main">
        <div class="main-left">
            <if condition="$message"><img src="__HIMG__icon_success.png"/><else/><img src="__HIMG__icon_error.png"/></if>
        </div>
        <div class="main-right">
            <p class="info"><if condition="$message">{$message}<else/>{$error}</if></p>
            <!--<p class="info"><if condition="$message">提交成功<else/>提交失败</if></p>-->
            <p class="btn"><a id="href" href="{$jumpUrl}"><span id="wait">{$waitSecond}</span>秒后跳转</a></p>
        </div>
    </div>
</div>
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</body>
</html>